package com.dz.tool.Vo;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

public class OracleTable {

    // 库名
    private String dataBaseName;

    public String getDataBaseName() {
        return dataBaseName;
    }

    public void setDataBaseName(String dataBaseName) {
        this.dataBaseName = dataBaseName;
    }

    // 数据表名称
    private String tableName;

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    // 数据表名称
    private String tableNameSlave;

    public String getTableNameSlave() {
        return tableNameSlave;
    }

    public void setTableNameSlave(String tableNameSlave) {
        this.tableNameSlave = tableNameSlave;
    }

    // 字段集合
    private List<OracleField> fieldList = new ArrayList<>();

    public List<OracleField> getFieldList() {
        return fieldList;
    }

    public void setFieldList(List<OracleField> fieldList) {
        this.fieldList = fieldList;
    }


    // 数据表创建语句
    private String tableSql;

    public String getTableSql() {
        return tableSql;
    }

    public void setTableSql(String tableSql) {
        this.tableSql = tableSql;
    }

    // 数据集合
    List<Map<String, Object>> dataList = new ArrayList<>();

    public List<Map<String, Object>> getDataList() {
        return dataList;
    }

    public void setDataList(List<Map<String, Object>> dataList) {
        this.dataList = dataList;
    }

    // 失败原因
    private String exMessage;

    public String getExMessage() {
        return exMessage;
    }

    public void setExMessage(String exMessage) {
        this.exMessage = exMessage;
    }

    // 主键字段集合
    private List<String> fieldKeyList = new ArrayList<>();

    public List<String> getFieldKeyList() {
        return fieldKeyList;
    }

    public void setFieldKeyList(List<String> fieldKeyList) {
        this.fieldKeyList = fieldKeyList;
    }

    public OracleTable() {}

    public OracleTable(String tableName, List<OracleField> fieldList) {
        this.tableName = tableName;
        this.fieldList = fieldList;
    }
}
